import request from '@/utils/request'
// -------- 咨询方式 --------

let BASE_ADDRESS = 'base/hotLabel'

//  id查询
export function gethotLabelGetInfoApi(params) {
    //console.log(params)
    return request({
        url: `${BASE_ADDRESS}/getInfo`,
        method: "get",
        params
    })
}

// 分页查询
export function gethotLabelListApi(params) {
    //console.log(params)
    //console.log(`${BASE_ADDRESS}/list`)
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: "get",
        params
    })
}

//  添加热词
export function gethotLabeladdApi(data) {
    console.log(data)
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: "POST",
        data
    })
}

//  修改热词
export function gethotLabelEditApi(data) {
    console.log(data)
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: "PUT",
        data
    })
}
//  修改热词官网点击次数
export function gethotLabelEditClickNumApi(data) {
    console.log(data)
    return request({
        url: `${BASE_ADDRESS}/editClickNum`,
        method: "PUT",
        data
    })
}
//  修改热词应用点击次数
export function gethotLabelEditGoodsClickNuApi(data) {
    console.log(data)
    return request({
        url: `${BASE_ADDRESS}/editGoodsClickNum`,
        method: "PUT",
        data
    })
}